﻿using Basic.HrCollect;
using Basic.HrRemoteModel.Holidays.Model;
using Basic.HrService.Interface;

namespace Basic.HrService.lmpl
{
    internal class HolidaysService : IHolidaysService
    {
        private readonly IHolidaysCollect _Holidays;

        public HolidaysService ( IHolidaysCollect holidays )
        {
            this._Holidays = holidays;
        }

        public bool Set ( HolidaysAdd data )
        {
            return this._Holidays.Set(data);
        }
        public HolidaysInfo[] Gets ( int year, int month )
        {
            return this._Holidays.Gets(year, month);
        }
    }
}
